package com.p2p.backend.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import com.p2p.base.util.sms.SMSService;
import com.p2p.base.web.controller.BaseController;
@RequestMapping("sms")
@Controller
public class SmsSendController extends BaseController {

	/** Logger */
	private static final Logger logger = LoggerFactory
			.getLogger(SmsSendController.class);
	
	@RequestMapping("send")
	public void send(@RequestParam String mobiles,@RequestParam String content,Model model){
		logger.info("smsBatchSend:"+content);
		SMSService.sendSMS(mobiles, content);
		model.addAttribute("res", 1);
	}
}
